import { useState } from "react"
export default function Footer(){
    const [count,setCount] =useState(1)
    function increament(){
        setCount(count+1)
    }
    return (
        <div>
            <h2>{count}</h2>
            <button onClick={increament}>add</button>
            <button onClick={()=>setCount(count+1)}>add</button>
        </div>
    )
}